import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

export default defineConfig({
    root: path.resolve(__dirname, 'src/renderer'),
    publicDir: 'public',
    server: {
        port: 3000,
        strictPort: true
    },
    build: {
        outDir: path.resolve(__dirname, 'dist/renderer'),
        emptyOutDir: true
    },
    resolve: {
        alias: {
            '@': path.resolve(__dirname, 'src/renderer/src')
        }
    },
    plugins: [vue()],
    base: './'
})